<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>首页</title>
		<meta charset="utf-8" />
		<link href="bootstrap/bootstrap.css" rel="stylesheet" />
		<style>
			.navbar #signIn{
				float : right;
			}
		</style>
	</head>
	<body>
	<nav class="navbar navbar-inverse navbar-static-top">
		<div class="container">
			<ul class="nav navbar-nav">
				<li class="active"><a href="javascript:void(0);">首页</a></li>
				<li><a href="javascript:void(0);">LINK1</a></li>
				<li><a href="javascript:void(0);">LINK2</a></li>
			</ul>
			<button type="button" class="btn btn-default navbar-btn" id="signIn">登陆</button>
		</div>
	</nav>
	<div class="panel panel-default">
		<div class="container">
		<div class="panel-heading">
			<a class="navbar-brand" href="javascript:void(0);">专辑列表</a>
			<form class="navbar-form navbar-left" role="search">
				<div class="form-group">
					<input type="text" class="form-control" placeholder="专辑/作者">
				</div>
				<button type="submit" class="btn btn-default">搜索</button>
			</form>
		</div>
		<table class="table">
			<tr>
				<th>专辑名称</th>
				<th>作者</th>
				<th>发布时间</th>
				<th>专辑类型</th>
				<th></th>
			</tr>
			<% albums.forEach(function(element){ %>
			<tr>
				<td><a href="/album/<%=element._id %>"><%=element.name %></a></td>
				<td><%=element.author %></td>
				<td><%=element.publishTime ? moment(element.publishTime).format(formatPattern.DATE) : null %></td>
				<td><%=element.type %></td>
				<td><span class="label label-danger">NEW</span></td>
			</tr>
			<% }); %>
		</table>
		<%-page.createHtml() %>
		</div>
	</div>
	<script src="js/jquery.js"></script>
	<script src="bootstrap/bootstrap.js"></script>
	</body>
</html>